/*
 *  Medieval Melee
 *  Copyright (C) 2009 Ben Foote
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 *  Uzebox is a reserved trade mark
*/

#ifndef __GLOBALS_H_
#define __GLOBALS_H_

//#ifdef UNIT_TEST
    #include <stdbool.h>
//#endif    

/// Defines that represent the different block values that we could have.
#define BLANK         0
#define BLUEDIAMOND   1
#define GREENSQUARE   2
#define PURPLESQUARE  3
#define REDHEART      4
#define YELLOWSTAR    5
#define GREYBOOM      6


/// Structure that holds a block. That is, the value of the current block
/// and whether it has been matched or not, so that later it can be removed.
typedef struct
{
    unsigned char ucBlock;
    bool           bMatched;
}PLAYFIELD;

/// Structure that represents one players playfield of blocs...which is 6x12.
typedef struct
{
    PLAYFIELD tField[6][12];
}PLAYFIELD_TYPE;

/// Structure that holds the x and y position of a players cursors, relative
/// to their playfield.
typedef struct
{
    unsigned char ucXpos;
    unsigned char ucYpos;
}CURSOR_POS;

#endif
